<?php include './application/views/common/zhs_header.php';?>
<?php include './application/views/common/zhs_usercenter_acnt.php';?>
<div class="inv_box w">
<?php include './application/views/common/zhs_usercenter_left.php';?>  
  <div class="membd_right">
  <h3 class="membdrg_tit">账户充值</h3>
  <div class="czbox_bd">
  	<form action="" method="post">
<input type="hidden" name="act" value="submit">
<ul>     
	<li>
		<span>充值渠道：</span>		
		<p>
			<input onclick="payment_radio_remove()" type="radio" name="payment1" value="1" id="payment1"  checked/> 	
			<a href = "https://my.baofoo.com" target = "_blank"><img src="/static/images/payment/baofoo.jpg" height="50px"/></a>
			<input onclick="bank_radio_remove()" type="radio" name="payment1" value="2" id="payment2" /><a href = "http://www.sumapay.com/" target = "_blank"><img src="/static/images/payment/sumapay.png" height="50px"/></a>
			<input type="hidden" name="payname1" value="宝付" />
			<input type="hidden" name="payname2" value="丰付" />	
			<span style="color:#f00;"></span><br />	
		</p>	
	</li>
	<li><span>用户账号：</span><p><?php echo strdisplay_start($user['phone'], 4); ?></p></li>

	<li id='select_bank'>
		<span>支付方式：</span>
				<!--  
				<p><input type="radio" style="float:left;" name="type"  id="type"  checked="checked" value="1"  onclick="change_type(1)"/>  
				<em style="margin-left:6px; float:left;">网银充值</em></p>
				-->
	<p>
		<select name="PayID" id="PayID" style="border:1px #ccc solid; height:36px; padding:10px 0 0 6px; width:194px; line-height:26px; "><!--充值方式，神州行101 联通102 电信103 盛大111 完美112 征途114 骏网一卡通115 网易 116-->
			<option value="">选择支付银行</option>
			<!-- 
			<option value="101">神州行</option>
			<option value="1022">联通卡</option>
			<option value="1033">电信卡</option>
			<option value="111">盛大卡</option>
			<option value="112">完美卡</option>
			<option value="114">征途卡</option>
			<option value="115">骏网一卡通</option>
			<option value="116">网易卡</option>
			<option value="1001">招商银行</option>
			<option value="1002">工商银行</option>
			<option value="1003">建设银行</option>
			<option value="1004">浦发银行</option>
			<option value="1005">农业银行</option>
			<option value="1006">民生银行</option>
			<option value="1009">兴业银行</option>
			<option value="1020">交通银行</option>
			<option value="1022">光大银行</option>
			<option value="1026">中国银行</option>
			<option value="1032">北京银行</option>		
			<option value="1035">平安银行</option>
			<option value="1036">广发银行</option>
			<option value="1039">中信银行</option>
			<option value="1080">银联在线</option>
			-->
			<option value="3001">招商银行(借)</option>
			<option value="3002">工商银行(借)</option>
			<option value="3003">建设银行(借)</option>
			<option value="3004">浦发银行(借)</option>
			<option value="3005">农业银行(借)</option>
			<option value="3006">民生银行(借)</option>
			<option value="3009">兴业银行(借)</option>
			<option value="3020">交通银行(借)</option>
			<option value="3022">光大银行(借)</option>
			<option value="3026">中国银行(借)</option>
			<option value="3032">北京银行(借)</option>		
			<option value="3035">平安银行(借)</option>
			<option value="3036">广发银行(借)</option>
			<option value="3039">中信银行(借)</option>
			<option value="3059">上海银行(借)</option>

			<option value="4001">招商银行(贷)</option>
			<option value="4002">工商银行(贷)</option>
			<option value="4003">建设银行(贷)</option>
			<option value="4004">浦发银行(贷)</option>
			<option value="4005">农业银行(贷)</option>
			<option value="4006">民生银行(贷)</option>
			<option value="4009">兴业银行(贷)</option>
			<option value="4020">交通银行(贷)</option>
			<option value="4022">光大银行(贷)</option>
			<option value="4026">中国银行(贷)</option>
			<option value="4032">北京银行(贷)</option>		
			<option value="4035">平安银行(贷)</option>
			<option value="4036">广发银行(贷)</option>
			<option value="4039">中信银行(贷)</option>
			<option value="4059">上海银行(贷)</option>
      </select>
      </p>
		</li>
			 <li>
		<span>充值金额：</span><p><input id="money" class="input1" type="text" name="money"  value="" maxlength="7"/> 元 </p>
		</li>
		
		 

		
		 <li>
		<span style="margin-top:12px;">验证码：</span><p><input class="yzinput" type="text" id="captcha" name="captcha" style="width:45px;" maxlength="4">
				<img src="/yanzheng/index/" id="imgCode" onclick="changeImage();" style="height:30px;width:80px;border:0;padding:0px;cursor:pointer;"/></p>
		</li>
		
		 <li>
			<input class="little_button" type="submit" style="margin-left:128px;" size="30" value="确认提交">
		</li>
</ul>
</form>
<script>
<?php if(isset($msg) && $msg!=''){?>
$(function(){
	$('#dialog').dialog({
		modal:true,
		title:'系统提示',
		buttons:{"确定":function(){$(this).dialog("close");}},
		close: function() {
		}
	}); 
	$("#msg").html("<?php echo $msg;?>");
});

<?php }?>

function bank_radio_remove(){
	$('#select_bank').css('display','none');
	/*
	$("input[name='payment1']").each(function(){
		$(this).attr("checked", false);
	});
	*/
}

function payment_radio_remove(){
	$('#select_bank').css('display','block');
	/*
	$("input[name='bankRadio']").each(function(){
		$(this).attr("checked", false);		
	});
	*/
}


</script>
  </div>
    <h3 class="membdrg_tit mt">充值记录</h3>
 <div class="hk_body pt">
            <table class="membd_tab">
      <thead>
        <tr bgcolor="#F3F3F3" height="40px">
			<td align="center"><strong>类型</strong></td>
			<td align="center"><strong>支付方式</strong></td>
			<td align="center"><strong>充值金额</strong></td>
			<td align="center"><strong>备注</strong></td>
			<td align="center"><strong>充值时间</strong></td>
			<td align="center"><strong>状态</strong></td>
			<!--
			<td align="center"><strong>管理备注</strong></td>
			-->
		  </tr>
      </thead>
      <tbody>
         <?php foreach($list as $val){?>
		  <tr height="35px">
			<td align="center"><?php echo $recharge_type[$val['ftype']];?></td>
			<td align="center"><?php echo isset($payment_list[$val['payment']]) ? $payment_list[$val['payment']]['name'] : '';?></td>
			<td align="center">&yen;<?php echo number_format($val['money'],2);?></td>
			<td align="center" style="max-width: 250px;"><?php echo $val['remark'];?></td>
			<td align="center"><?php echo date('Y-m-d H:i',$val['add_time']);?></td>
			<td align="center"><?php echo $recharge_status[$val['fstatus']];?></td>
			<!-- <td align="center"><?php echo $val['verify_remark'];?></td>-->
		  </tr>
		  <?php }?>
      </tbody>
    </table>
    <div class="invbd_page"><?php echo $this->pagination->create_links();?></div>
        </div>
  </div>
</div>
<?php include './application/views/common/zhs_footer.php';?>
<?php include './application/views/common/zhs_right.php';?>
